<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/dynamic/commit}"  enctype="multipart/form-data"  method="post" th:object="${dynamic}">
    <label>
        名称:
        <select name="userid">
            <option th:each="var : ${allname}"
                    th:value="${var.id}"
                    th:text="${var.name}"></option>
        </select>
    </label>
    </br>
    <label>
        文件:
        <input type="file" name="file" >
    </label>
    </br>
    <label>
        标题:
        <input type="text" th:field="*{dynamic_title}">
    </label>
    </br>
    <label>
        文章信息:
        <textarea th:field="*{dynamic_info}"></textarea>
    </label>
    </br>
    <input type="submit" value="提交">

</form>
<form th:action="@{/dynamic/delete_file}" method="get">
    <button>删除</button>
</form>
</body>
</html>